<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/incube-app.tld" prefix="app" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ page import = "org.apache.struts.Globals,java.util.ArrayList,org.fiel.domain.Informacion"%>
<%
	ArrayList al = (ArrayList) session.getAttribute("libros");
	Informacion inf = null;
	for(int i=0;i<al.size();i++){
		inf = (Informacion) al.get(i);
		if((inf.getNameFileE() == null) || (inf.getNameFileE().equals(""))){
			inf.setNameFileE(inf.getNameFile());
		}
		if((inf.getTituloE() == null) || (inf.getTituloE().equals(""))){
			inf.setTituloE(inf.getTitulo());
		}
	}
	session.setAttribute("libros",al);
%>
<bean:define id="locale" name="<%=Globals.LOCALE_KEY%>" type="java.util.Locale"/>
<table border="0" cellpadding="5" cellspacing="0" height="100%" style="font-family:arial;font-size:8pt" width="100%">
	<tr>
		<td width="25%" valign="top">
			<span style="color:#333399;font-size:11pt;font-weight:bold" >
				<bean:message key="body.ecoengraf.titulo"/>
			</span>
		</td> 
		<td valign="top">
			<logic:iterate id="info" name="libros" type="org.fiel.domain.Informacion">
				<table width="100%">
					<tr>
						<td valign="top">
							<logic:equal name="locale" property="language" value="es">
								<logic:notEmpty name="info" property="nameFile">
									<a class="celeste" href="/publicaciones/EconomiaEnGraficos/<%=info.getNameFile() %>" target="_blank">
										<bean:write name="info" property="titulo"/>
									</a>
								</logic:notEmpty>
								<logic:empty name="info" property="nameFile">
									<span class="celeste"><bean:write name="info" property="titulo"/></span>
								</logic:empty>
							</logic:equal>
							<logic:equal name="locale" property="language" value="en">
								<logic:notEmpty name="info" property="nameFileE">
									<a class="celeste" href="/publicaciones/EconomiaEnGraficos/<%=info.getNameFileE() %>" target="_blank">
										<bean:write name="info" property="tituloE"/>
									</a>
								</logic:notEmpty>
								<logic:empty name="info" property="nameFileE">
									<span class="celeste"><bean:write name="info" property="tituloE"/></span>
								</logic:empty>
							</logic:equal>
						</td>
					</tr>
				</table>
			</logic:iterate>
		</td>
	</tr>
	</table>
